import { UserInfo } from '@/interfaces/user';

interface ModelState {
  currentUser: UserInfo;
}

export default {
  state: {
    currentUser: {},
  } as ModelState,
  reducers: {
    updateCurrentUser(prevState: ModelState, payload: UserInfo) {
      prevState.currentUser = payload;
    },
  },
};
